<template>
  <div class="tabbar">
    <div class="lww_header">
      <div class="header_wrap">
        <div class="header_logo">
          <a href="javascript:void(0);" class="lww_logo"></a>
        </div>
        <ul class="header_nav">
          <li name="index" class="header_nav_active">
            <a href="./Home.vue">首页</a>
          </li>
          <li name="destination"><a href="./destination.html">目的地</a></li>
          <li name="strategy">
            <a href="./strategy_index.html">旅游攻略</a>
          </li>
          <li name="travel"><a href="./travel_index.html">旅游日记</a></li>
          <li name="">
            <a href="javascript:void(0);"
              >去旅行<i class="icon_caret_down"></i
            ></a>
          </li>
          <li name="">
            <a href="javascript:void(0);"
              >社区<i class="icon_caret_down"></i
            ></a>
          </li>
        </ul>
        <!-- 搜索框 -->
        <div class="header_search">
          <input type="text" />
          <a class="icon_search"></a>
        </div>
        <div class="login_info" style="display: none">
          <div class="head_user">
            <a href="./index.html">
              <img src="@/assets/images/default.jpg" id="login_user_headUrl" />
              <i class="icon_caret_down"></i>
            </a>
          </div>
          <div class="header_msg">消息<i class="icon_caret_down"></i></div>
          <div class="header_daka">
            <a href="javascript:void(0);">打卡</a>
          </div>
        </div>
        <div class="login-out">
          <a
            class="weibo-login"
            href="./login.html"
            title="微博登录"
            rel="nofollow"
          ></a>
          <a
            class="qq-login"
            href="./login.html"
            title="QQ登录"
            rel="nofollow"
          ></a>
          <a
            class="weixin-login"
            href="./login.html"
            title="微信登录"
            rel="nofollow"
          ></a>
          <a
            id="_j_showlogin"
            title="登录骡窝窝"
            rel="nofollow"
            @click="$router.push('/login')"
            >登录</a
          >
          <span class="split">|</span>
          <!-- href="./regist.html" -->
          <a href="" title="注册帐号" rel="nofollow">注册</a>
        </div>
      </div>
      <div class="shadow"></div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
};
</script>

<style lang="less" scoped>
/** 头部样式 **/

.lww_header {
  position: relative;
  z-index: 90;
  height: 68px;
  background-color: #fff;
}

.header_wrap {
  width: 1000px;
  height: 68px;
  margin: 0 auto;
  _overflow: hidden;
  position: relative;
  z-index: 2;
}

.header_logo {
  float: left;
  width: 136px;
  padding: 13px 0;
  height: 32px;
}

.lww_logo {
  display: block;
  height: 39px;
  background: url("../assets/images/header-sprites15.png") no-repeat 0 0;
  position: relative;
}

.header_nav {
  float: left;
  display: inline;
  padding: 0 10px 0 25px;
  line-height: 68px;
  font-size: 14px;
  color: #333;
}
input {
  outline: 0;
}

.header_nav li {
  float: left;
}

.header_nav li a {
  display: inline-block;
  padding: 0 16px;
  color: #333;
  vertical-align: top;
  overflow: hidden;
}

.header_nav li a:hover {
  text-decoration: none;
  color: #ff9d00;
  height: 65px;
  border-bottom: 3px solid #ff9d00;
}

.header_nav .header_nav_active a {
  background-color: #ff9d00;
  color: #fff !important;
  text-decoration: none;
}

.icon_caret_down {
  display: inline-block;
  margin: 0 -5px 0 3px;
  height: 0;
  width: 0;
  border-top: 4px solid #666;
  border-left: 4px dashed transparent;
  border-right: 4px dashed transparent;
  overflow: hidden;
  border-top-color: #666;
  vertical-align: middle;
  transition: transform 0.5s ease-in-out 0s;
}

.header_nav .header_nav_active a .icon_caret_down {
  border-top: 4px solid #fff;
  border-top-color: #fff;
}

.header_nav li a:hover .icon_caret_down {
  border-top: 4px solid #ff9d00;
  border-top-color: #ff9d00;
}

.header_nav .header_nav_active a:hover .icon_caret_down {
  border-top: 4px solid #fff;
  border-top-color: #fff;
}

.header_search {
  position: relative;
  box-sizing: border-box;
  float: left;
  width: 130px;
  height: 68px;
  padding: 16px 0 15px;
}

.header_search input {
  border: 1px solid #efefef;
  background-color: #efefef;
  width: 108px;
  height: 34px;
  padding: 0 10px;
  line-height: 34px;
  font-size: 14px;
  color: #666;
  border-radius: 4px;
  -webkit-transition: width 0.5s ease 0s;
  transition: width 0.5s ease 0s;
}

.icon_search {
  position: absolute;
  top: 22px;
  right: 8px;
  width: 20px;
  height: 20px;
  background-image: url("../assets/images/header-sprites15.png");
  background-position: -30px -110px !important;
  overflow: hidden;
}

.header_daka a:hover {
  text-decoration: none;
  color: #fff;
}

.login_info {
  float: right;
}

.head_user {
  float: right;
}

.head_user a {
  display: inline-block;
  color: #666;
  font-size: 14px;
  height: 68px;
  line-height: 68px;
}

.head_user a img {
  display: inline-block;
  /* margin-top: 16px; */
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  vertical-align: middle;
}

.head_user a .icon_caret_down {
  vertical-align: middle;
}

.header_msg {
  float: right;
  margin-right: 25px;
  height: 68px;
  line-height: 68px;
  cursor: pointer;
}

.header_daka {
  float: right;
  width: 55px;
  margin-right: 25px;
  padding-top: 22px;
}

.header_daka a {
  display: block;
  height: 20px;
  background-color: #1493e3;
  text-align: center;
  line-height: 20px;
  color: #fff;
  border-radius: 4px;
  overflow: hidden;
  font-size: 12px;
}

.shadow {
  position: absolute;
  left: 0;
  bottom: -2px;
  right: 0;
  width: 100%;
  height: 2px;
  border-top: 1px solid #d6d6d6;
  background-color: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

@media (max-width: 1440px) {
  .lww_header {
    height: 58px;
  }

  .header_wrap {
    height: 58px;
  }

  .header_logo {
    padding: 13px 0;
    height: 32px;
  }

  .lww_logo {
    height: 33px;
    width: 120px;
    background: url("../assets/images/header-small-sprites3.png") no-repeat 0 0;
    background-size: cover;
  }

  .header_nav {
    line-height: 58px;
    font-size: 14px;
  }

  .header_nav li a:hover {
    height: 55px;
  }

  .header_search {
    padding: 14px 0 13px;
    height: 58px;
  }

  .header_search input {
    height: 28px;
    line-height: 28px;
  }

  .icon_search {
    top: 19px;
  }

  .head_user a {
    height: 58px;
    line-height: 58px;
  }

  .head_user a img {
    /* margin-top: 12px; */
  }

  .header_msg {
    height: 58px;
    line-height: 58px;
  }

  .header_daka {
    padding-top: 18px;
  }
}
.login-out {
  float: right;
  padding: 21px 0;
  height: 26px;
  line-height: 26px;
  color: #c9c9c9;
  text-align: right;
}

.login-out .weibo-login,
.login-out .qq-login,
.login-out .weixin-login {
  display: inline-block;
  margin-right: 6px;
  width: 26px;
  height: 26px;
  background-image: url("../assets/images/header-sprites15.png");
  background-position: 0 -50px !important;
  overflow: hidden;
  vertical-align: -7px;
  *vertical-align: middle;
}
.login-out .qq-login {
  background-position: -30px -50px !important;
}
.login-out .weixin-login {
  background-position: 0 -165px !important;
}
.login-out a {
  font-size: 14px;
}
a {
  text-decoration: none;
  color: #ff9d00;
  cursor: pointer;
}
</style>
